package easy;

public class Solution_1903 {

    public String largestOddNumber(String num) {
        char[] chars = num.toCharArray();
        for (int i = chars.length - 1; i >= 0; i--) {
            if ((chars[i] - '0') % 2 != 0) {
                return num.substring(0, i + 1);
            }
        }
        return "";
    }
}
